package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BasePageResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.logPart.LogPartReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.logPart.LogPartResVo;
import com.zmj.sy.mom.srv.aps.service.LogPartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "日志管理-零组件日志")
@RestController
@RequestMapping("/logPart")
public class LogPartController {

    private final LogPartService logRecordService;

    @ApiOperation("零组件日志")
    @GetMapping("/log")
    public BasePageResVo<LogPartResVo> log(LogPartReqVo reqVo){
        return logRecordService.log(reqVo);
    }

}
